

package com.maoshi.shop.bean.app.param;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value= "地址参数")
public class AddrParam {

	@ApiModelProperty(value = "地址ID",required=true)
	private Long addrId;

	@NotNull(message = "收货人不能为空")
	@ApiModelProperty(value = "收货人",required=true)
	private String receiver;

	@NotNull(message = "地址不能为空")
	@ApiModelProperty(value = "地址",required=true)
	private String addr;

	@ApiModelProperty(value = "邮编",required=false)
	private String postCode;

	@NotNull(message = "手机不能为空")
	@ApiModelProperty(value = "手机",required=true)
	private String mobile;

	@NotNull(message = "省ID不能为空")
	@ApiModelProperty(value = "省ID",required=true)
	private Long provinceId;

	@NotNull(message = "城市ID不能为空")
	@ApiModelProperty(value = "城市ID",required=true)
	private Long cityId;

	@NotNull(message = "区ID不能为空")
	@ApiModelProperty(value = "区ID",required=true)
	private Long areaId;

	@NotNull(message = "省不能为空")
	@ApiModelProperty(value = "省",required=true)
	private String province;

	@NotNull(message = "城市不能为空")
	@ApiModelProperty(value = "城市",required=true)
	private String city;

	@NotNull(message = "区不能为空")
	@ApiModelProperty(value = "区",required=true)
	private String area;

	//合并代码开始
	@NotNull(message = "所在纬度不能为空")
	@ApiModelProperty(value = "所在纬度",required=true)
	private String addrLat;

	@NotNull(message = "所在经度不能为空")
	@ApiModelProperty(value = "所在经度",required=true)
	private String addrLng;
	//合并代码结束

}
